package com.wwx.worldonwheels.domain;

import java.util.ArrayList;
import java.util.List;

public class WwxWowExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WwxWowExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWowIdIsNull() {
            addCriterion("wow_id is null");
            return (Criteria) this;
        }

        public Criteria andWowIdIsNotNull() {
            addCriterion("wow_id is not null");
            return (Criteria) this;
        }

        public Criteria andWowIdEqualTo(Integer value) {
            addCriterion("wow_id =", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdNotEqualTo(Integer value) {
            addCriterion("wow_id <>", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdGreaterThan(Integer value) {
            addCriterion("wow_id >", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wow_id >=", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdLessThan(Integer value) {
            addCriterion("wow_id <", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdLessThanOrEqualTo(Integer value) {
            addCriterion("wow_id <=", value, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdIn(List<Integer> values) {
            addCriterion("wow_id in", values, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdNotIn(List<Integer> values) {
            addCriterion("wow_id not in", values, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdBetween(Integer value1, Integer value2) {
            addCriterion("wow_id between", value1, value2, "wowId");
            return (Criteria) this;
        }

        public Criteria andWowIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wow_id not between", value1, value2, "wowId");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andAddrCountryIsNull() {
            addCriterion("addr_country is null");
            return (Criteria) this;
        }

        public Criteria andAddrCountryIsNotNull() {
            addCriterion("addr_country is not null");
            return (Criteria) this;
        }

        public Criteria andAddrCountryEqualTo(String value) {
            addCriterion("addr_country =", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryNotEqualTo(String value) {
            addCriterion("addr_country <>", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryGreaterThan(String value) {
            addCriterion("addr_country >", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryGreaterThanOrEqualTo(String value) {
            addCriterion("addr_country >=", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryLessThan(String value) {
            addCriterion("addr_country <", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryLessThanOrEqualTo(String value) {
            addCriterion("addr_country <=", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryLike(String value) {
            addCriterion("addr_country like", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryNotLike(String value) {
            addCriterion("addr_country not like", value, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryIn(List<String> values) {
            addCriterion("addr_country in", values, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryNotIn(List<String> values) {
            addCriterion("addr_country not in", values, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryBetween(String value1, String value2) {
            addCriterion("addr_country between", value1, value2, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCountryNotBetween(String value1, String value2) {
            addCriterion("addr_country not between", value1, value2, "addrCountry");
            return (Criteria) this;
        }

        public Criteria andAddrCityIsNull() {
            addCriterion("addr_city is null");
            return (Criteria) this;
        }

        public Criteria andAddrCityIsNotNull() {
            addCriterion("addr_city is not null");
            return (Criteria) this;
        }

        public Criteria andAddrCityEqualTo(String value) {
            addCriterion("addr_city =", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityNotEqualTo(String value) {
            addCriterion("addr_city <>", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityGreaterThan(String value) {
            addCriterion("addr_city >", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityGreaterThanOrEqualTo(String value) {
            addCriterion("addr_city >=", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityLessThan(String value) {
            addCriterion("addr_city <", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityLessThanOrEqualTo(String value) {
            addCriterion("addr_city <=", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityLike(String value) {
            addCriterion("addr_city like", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityNotLike(String value) {
            addCriterion("addr_city not like", value, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityIn(List<String> values) {
            addCriterion("addr_city in", values, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityNotIn(List<String> values) {
            addCriterion("addr_city not in", values, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityBetween(String value1, String value2) {
            addCriterion("addr_city between", value1, value2, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrCityNotBetween(String value1, String value2) {
            addCriterion("addr_city not between", value1, value2, "addrCity");
            return (Criteria) this;
        }

        public Criteria andAddrStreetIsNull() {
            addCriterion("addr_street is null");
            return (Criteria) this;
        }

        public Criteria andAddrStreetIsNotNull() {
            addCriterion("addr_street is not null");
            return (Criteria) this;
        }

        public Criteria andAddrStreetEqualTo(String value) {
            addCriterion("addr_street =", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetNotEqualTo(String value) {
            addCriterion("addr_street <>", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetGreaterThan(String value) {
            addCriterion("addr_street >", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetGreaterThanOrEqualTo(String value) {
            addCriterion("addr_street >=", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetLessThan(String value) {
            addCriterion("addr_street <", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetLessThanOrEqualTo(String value) {
            addCriterion("addr_street <=", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetLike(String value) {
            addCriterion("addr_street like", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetNotLike(String value) {
            addCriterion("addr_street not like", value, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetIn(List<String> values) {
            addCriterion("addr_street in", values, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetNotIn(List<String> values) {
            addCriterion("addr_street not in", values, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetBetween(String value1, String value2) {
            addCriterion("addr_street between", value1, value2, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrStreetNotBetween(String value1, String value2) {
            addCriterion("addr_street not between", value1, value2, "addrStreet");
            return (Criteria) this;
        }

        public Criteria andAddrZipIsNull() {
            addCriterion("addr_zip is null");
            return (Criteria) this;
        }

        public Criteria andAddrZipIsNotNull() {
            addCriterion("addr_zip is not null");
            return (Criteria) this;
        }

        public Criteria andAddrZipEqualTo(String value) {
            addCriterion("addr_zip =", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipNotEqualTo(String value) {
            addCriterion("addr_zip <>", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipGreaterThan(String value) {
            addCriterion("addr_zip >", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipGreaterThanOrEqualTo(String value) {
            addCriterion("addr_zip >=", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipLessThan(String value) {
            addCriterion("addr_zip <", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipLessThanOrEqualTo(String value) {
            addCriterion("addr_zip <=", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipLike(String value) {
            addCriterion("addr_zip like", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipNotLike(String value) {
            addCriterion("addr_zip not like", value, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipIn(List<String> values) {
            addCriterion("addr_zip in", values, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipNotIn(List<String> values) {
            addCriterion("addr_zip not in", values, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipBetween(String value1, String value2) {
            addCriterion("addr_zip between", value1, value2, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrZipNotBetween(String value1, String value2) {
            addCriterion("addr_zip not between", value1, value2, "addrZip");
            return (Criteria) this;
        }

        public Criteria andAddrStateIsNull() {
            addCriterion("addr_state is null");
            return (Criteria) this;
        }

        public Criteria andAddrStateIsNotNull() {
            addCriterion("addr_state is not null");
            return (Criteria) this;
        }

        public Criteria andAddrStateEqualTo(String value) {
            addCriterion("addr_state =", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateNotEqualTo(String value) {
            addCriterion("addr_state <>", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateGreaterThan(String value) {
            addCriterion("addr_state >", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateGreaterThanOrEqualTo(String value) {
            addCriterion("addr_state >=", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateLessThan(String value) {
            addCriterion("addr_state <", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateLessThanOrEqualTo(String value) {
            addCriterion("addr_state <=", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateLike(String value) {
            addCriterion("addr_state like", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateNotLike(String value) {
            addCriterion("addr_state not like", value, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateIn(List<String> values) {
            addCriterion("addr_state in", values, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateNotIn(List<String> values) {
            addCriterion("addr_state not in", values, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateBetween(String value1, String value2) {
            addCriterion("addr_state between", value1, value2, "addrState");
            return (Criteria) this;
        }

        public Criteria andAddrStateNotBetween(String value1, String value2) {
            addCriterion("addr_state not between", value1, value2, "addrState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}